package com.zhang;

public class Employee {
    private String name;
    private int salary;
    private double xxx;
    private int status;

    public Employee() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public double getXxx() {
        return xxx;
    }

    public void setXxx(double xxx) {
        this.xxx = xxx;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Employee(String name, int salary, double xxx, int status) {
        this.name = name;
        this.salary = salary;
        this.xxx = xxx;
        this.status = status;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", salary=" + salary +
                ", xxx=" + xxx +
                ", status=" + status +
                '}';
    }

    static enum Status {
        BUSY(1,"繁忙"),

        FREE(2,"空闲"),

        VOCATION(3,"工作中");
        private   int code;
        private String msg;
        public String getMsg(){
            return msg;
        }
        public int getCode(){
            return code;
        }
        Status(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }


}
